import vtk

cone =vtk.vtkConeSource()
cone.SetResolution(10)
coneMapper = vtk.vtkPolyDataMapper()
coneActor = vtk.vtkActor()

coneMapper.SetInput(cone.GetOutput())
coneActor.SetMapper(coneMapper)

ren = vtk.vtkRenderer()
renWin = vtk.vtkRenderWindow()
iren = vtk.vtkRenderWindowInteractor()

renWin.AddRenderer(ren)
renWin.SetInteractor(iren)

ren.AddActor(coneActor)

renWin.Render()
iren.Start()
